package com.reih.ContractionTimer.components;

import java.util.ArrayList;
import java.util.List;

import android.content.Context;
import android.view.View;

public class TimeLine extends View {
	List<Long> points = new ArrayList<Long>();
	int pieces = 20;
	int baseTime = 60;
	long startTime = System.currentTimeMillis();
	long lastTime =0;
	
	public TimeLine(Context context,int pieces,int baseTime){
		super(context);
		this.pieces = pieces;
		this.baseTime = baseTime;
	}

	public TimeLine(Context context) {
		super(context);
		draw();
	}

	public void addPoint(Long point){
		points.add(point);
		lastTime = point;
		draw();
	}
	
	private void draw() {
		long timeInterval = (lastTime - startTime)/1000;
		if(timeInterval>baseTime*pieces){
			
		}
		
	}

}
